package com.investment.util.tools;


import org.springframework.util.StringUtils;

import java.util.UUID;

/**
 * Created by veicth on 17/2/25.
 */
public class Tool {
    public static String getUUID32() {
        String s = UUID.randomUUID().toString().toLowerCase();
        return replace(s, "-", "");
    }
    public static String replace(String s, String s1, String s2) {
        return s != null && s1 != null && s2 != null? StringUtils.replace(s, s1, s2):"";
    }
}
